<%@ page contentType="text/html;charset=UTF-8"%>
<%@ page import="com.prisetree.isv.common.util.DictUtils"%>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<HTML>
<head>
<%@include file="/WEB-INF/views/include/head.jsp"%>
<title>房源列表</title>
</head>
<body>
	<nav class="breadcrumb">
		<i class="Hui-iconfont">&#xe67f;</i> 首页 <span class="c-gray en">&gt;</span>
		数据监控<span class="c-gray en">&gt;</span>三十天日活
		<a class="btn btn-success radius r" style="line-height: 1.6em; margin-top: 3px; margin-left: 3px" href="javascript:location.replace(location.href);" title="刷新"><i	class="Hui-iconfont">&#xe68f;</i></a>
		<a class="btn btn-danger radius r" style="line-height: 1.6em; margin-top: 3px; margin-left: 3px" href="javascript:;" onclick="clean()" ><i class="Hui-iconfont">&#xe6e2;</i>清除</a>
	</nav>
	<div class="page-container">
		<div id="month" style="width: 600px;height:400px;"></div>
	</div>
	<script type="text/javascript" src="${ctxStatic}/js/echarts.common.min.js"></script>
	<script type="text/javascript">
		var monthChart = echarts.init(document.getElementById("month"));
		var option = {
			    title : {
			        text: '最近三十天日活'
			    },
			    tooltip : {
			        trigger: 'axis'
			    },
			    legend: {
			        data:['DAU30']
			    },
			    toolbox: {
			        show : true,
			        feature : {
			            mark : {show: true},
			            dataView : {show: true, readOnly: false},
			            magicType : {show: true, type: ['line', 'bar']},
			            restore : {show: true},
			            saveAsImage : {show: true}
			        }
			    },
			    calculable : true,
			    xAxis : [
			        {
			            type : 'category',
			            boundaryGap : false,
			            data : [${date}]
			        }
			    ],
			    yAxis : [
			        {
			            type : 'value',
			            axisLabel : {
			                formatter: '{value} '
			            }
			        }
			    ],
			    series : [
			        {
			            name:'DAU30',
			            type:'line',
			            data:[${data}],
			            markPoint : {
			                data : [
			                    {type : 'max', name: '最大值'},
			                    {type : 'min', name: '最小值'}
			                ]
			            },
			            markLine : {
			                data : [
			                    {type : 'average', name: '平均值'}
			                ]
			            }
			        }
			    ]
			};
		monthChart.setOption(option);

	</script>
</body>
</html>